<?php

//===========================================================================
// INITIALIZE DATA
//===========================================================================

$silent_mode = true;

require_once("../../init.inc.php");

// Load session
//$CMS->class->session->auto_run();

//Load language
$CMS->class->language->auto_run();
$CMS->class->date->auto_run();

$expires = 60*60*24;
header("Content-type: text/javascript;  charset=utf-8");
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');

$data = <<<EOF

	var lang_alert_delete = "{$CMS->lang['alert_delete']}";
	var lang_alert_empty = "{$CMS->lang['alert_empty']}";
	var lang_required_field = "{$CMS->lang['required_field']}";
	var lang_invalid_email = "{$CMS->lang['invalid_email']}";
	var lang_invalid_phone = "{$CMS->lang['invalid_phone']}";
	var lang_invalid_phone_moblie = "{$CMS->lang['cus_incomplete_default_phone_mobile']}";
	var lang_invalid_phone_moblie_temp = "{$CMS->lang['cus_incomplete_default_phone_mobile_temp']}";
	
	var lang_invalid_password_trade = "{$CMS->lang['cus_incomplete_password_trade']}";
	var lang_invalid_password_trade_temp = "{$CMS->lang['cus_incomplete_temp_password_trade']}";
	
	var lang_invalid_rep_fullname = "{$CMS->lang['cus_incomplete_rep_fullname']}";
	var lang_invalid_rep_address = "{$CMS->lang['cus_incomplete_rep_address']}";
	var lang_invalid_rep_phone = "{$CMS->lang['cus_incomplete_rep_phone']}";
	var lang_invalid_rep_aut_number = "{$CMS->lang['cus_incomplete_rep_aut_number']}";
	var lang_invalid_comp_aut_number = "{$CMS->lang['cus_incomplete_comp_aut_number']}";
	var lang_invalid_comp_address = "{$CMS->lang['cus_incomplete_comp_address']}";
	
	var lang_invalid_number = "{$CMS->lang['invalid_number']}";
	var lang_invalid_date = "{$CMS->lang['invalid_date']}";
	var lang_invalid_ip_address = "{$CMS->lang['invalid_ip_address']}";
	var lang_invalid_subdomain = "{$CMS->lang['invalid_subdomain']}";
	var lang_invalid_domain = "{$CMS->lang['invalid_domain']}";
	var lang_invalid_domain_ext = "{$CMS->lang['invalid_domain_ext']}";
	var lang_invalid_domain_start = "{$CMS->lang['invalid_domain_start']}";
	var lang_invalid_domain_char = "{$CMS->lang['invalid_domain_char']}";
	var lang_invalid_domain_length = "{$CMS->lang['invalid_domain_length']}";
	var lang_invalid_maxvalue = "{$CMS->lang['invalid_maxvalue']}";
	var lang_invalid_minvalue = "{$CMS->lang['invalid_minvalue']}";
	var lang_invalid_username = "{$CMS->lang['invalid_username']}";
	var lang_invalid_http = "{$CMS->lang['invalid_http']}";
	var lang_loading = "{$CMS->lang['loading']}";
	var lang_no_result = "{$CMS->lang['no_result']}";
	var lang_create_random_password = "{$CMS->lang['create_random_password']}";
	var lang_close = "{$CMS->lang['close']}";

	var lang_love = "{$CMS->lang['love_this']}";
	var lang_unlove = "{$CMS->lang['unlove']}";
	var lang_user_not_login = "{$CMS->lang['user_not_login']}";
	var lang_section = "{$CMS->lang['lang_section']}";
	var lang_allsection = "{$CMS->lang['lang_allsection']}";
	var lang_shop_vip_not_enough_balance = "{$CMS->lang['shop_vip_not_enough_balance']}";
	var lang_alert_notice = "{$CMS->lang['alert_notice']}";
	var lang_please_select_product = "{$CMS->lang['please_select_product']}";
	var lang_incomplete_check_agree = "{$CMS->lang['incomplete_check_agree']}";
	var lang_shop_vip_sure_600 = "{$CMS->lang['shop_vip_sure_600']}";
	var lang_shop_vip_sure_1200 = "{$CMS->lang['shop_vip_sure_1200']}";
	var lang_shop_vip_sure_1800 = "{$CMS->lang['shop_vip_sure_1800']}";
	var lang_shop_vip_sure_2400 = "{$CMS->lang['shop_vip_sure_2400']}";
	var lang_shop_vip_sure_suppervip = "{$CMS->lang['shop_vip_sure_suppervip']}";
	var lang_shop_redirect = "{$CMS->lang['shop_redirect']}";
	
	
	var lang_cus_incomplete_password = "{$CMS->lang['cus_incomplete_password']}";
	var lang_error_code = "{$CMS->lang['error_code']}";
	var postnews_product_name = "{$CMS->lang['postnews_product_name']}";
	var postnews_product_price = "{$CMS->lang['postnews_product_price']}";
	var postnews_product_price_remain = "{$CMS->lang['postnews_product_price_remain']}";
	var price_remain = "{$CMS->lang['price_remain']}";
	
	
	
	var lang_postnews_name = "{$CMS->lang['postnews_name_error']}";
	var lang_postnews_description = "{$CMS->lang['postnews_description_error']}";
	var lang_postnews_cat_id = "{$CMS->lang['postnews_cat_id_error']}";
	var lang_postnews_city_id = "{$CMS->lang['postnews_city_id_error']}";
	var lang_postnews_content = "{$CMS->lang['postnews_content_error']}";
	var lang_product_price = "{$CMS->lang['postnews_price']}";
	var lang_product_discount = "{$CMS->lang['product_discount']}";
	var lang_security_code = "{$CMS->lang['security_code']}";
	var lang_product_image_url = "{$CMS->lang['product_image_url']}";
	
	
	var lang_money_error = "{$CMS->lang['money_error']}";	
	var lang_money_success = "{$CMS->lang['money_success']}";	
	var agree = "{$CMS->lang['agree']}";
	var lang_confirm_up = "{$CMS->lang['confirm_up']}";
	
	var lang_error_shop_up1 = "{$CMS->lang['error_shop_up1']}";
	var lang_success_shop_up1 = "{$CMS->lang['success_shop_up1']}";
	var lang_delete_post = "{$CMS->lang['delete_post']}";
	var lang_dk_showcase = "{$CMS->lang['dk_showcase']}";
	
	var lang_error_menuname = "{$CMS->lang['error_menu']}";
	var lang_error_dk_showcase = "{$CMS->lang['error_dk_showcase']}";
	var lang_success_dk_showcase = "{$CMS->lang['success_dk_showcase']}";
	var lang_A_limit_dk_showcase = "{$CMS->lang['A_limit_dk_showcase']}";
	var lang_restore_post = "{$CMS->lang['restore_post']}";
	var lang_error_restore = "{$CMS->lang['error_restore']}";
	var lang_success_restore = "{$CMS->lang['success_restore']}";
	var lang_price_remain = "{$CMS->lang['price_remain']}";
	
	var lang_mail_format = "{$CMS->lang['mail_format']}";
	var lang_email_is_null = "{$CMS->lang['lang_email_is_null']}";
	var lang_cus_incomplete_password1 = "{$CMS->lang['lang_cus_incomplete_password']}";
	var lang_error_security = "{$CMS->lang['lang_error_security']}";
	
	var lang_cus_fullname_null = "{$CMS->lang['lang_cus_fullname_null']}";
	var lang_cus_username_null = "{$CMS->lang['lang_cus_username_null']}";
	var lang_cus_password = "{$CMS->lang['lang_cus_password']}";
	var lang_cus_repassword = "{$CMS->lang['lang_cus_repassword']}";
	var lang_minlength_pass = "{$CMS->lang['lang_minlength_pass']}";
	var lang_equal_password = "{$CMS->lang['lang_equal_password']}";
	var lang_security_null = "{$CMS->lang['lang_security_null']}";
	var lang_security_null_length = "{$CMS->lang['lang_security_null_length']}";
	var lang_error_pass_1 = "{$CMS->lang['lang_error_pass_1']}";
	var lang_email_null = "{$CMS->lang['lang_email_null']}";
	var lang_email_format = "{$CMS->lang['lang_email_format']}";
	var lang_error_security = "{$CMS->lang['lang_error_security']}";
	var lang_error_vote = "{$CMS->lang['lang_error_vote']}";
	var lang_success_vote = "{$CMS->lang['lang_success_vote']}";
	
	
	var lang_msg_title = "{$CMS->lang['lang_msg_title']}";
	var lang_msg_content = "{$CMS->lang['lang_msg_content']}";
	var lang_sure_del_msg = "{$CMS->lang['lang_sure_del_msg']}";
	var lang_del_msg_success = "{$CMS->lang['lang_del_msg_success']}";
	var lang_cart_no_product = "{$CMS->lang['cart_no_product']}";
	var lang_cart_login = "{$CMS->lang['cart_login']}";
	var lang_cus_avatar_not_valid = "{$CMS->lang['cus_avatar_not_valid']}";
	var lang_cus_avatar_uploading = "{$CMS->lang['cus_avatar_uploading']}";
	var lang_error_banner_title = "{$CMS->lang['error_banner']}";
	
	var lang_shop_owner_name = "{$CMS->lang['shop_owner_name']}";
	var lang_shop_owner_address = "{$CMS->lang['shop_owner_address']}";
	var lang_shop_owner_idnum = "{$CMS->lang['shop_owner_idnum']}";

	var lang_shop_length_owner_idnum = "{$CMS->lang['shop_length_owner_idnum']}";
	var lang_shop_length_phone_number = "{$CMS->lang['shop_length_phone_number']}";
	var lang_shop_name = "{$CMS->lang['shop_name']}";
	var lang_shop_yahooid = "{$CMS->lang['shop_yahooid']}";
	var lang_shop_address = "{$CMS->lang['shop_address']}";
	var lang_shop_phone_number = "{$CMS->lang['shop_phone_number']}";
	
	var lang_cart_buyer_address = "{$CMS->lang['cart_buyer_address']}";
	var lang_cart_buyer_email = "{$CMS->lang['cart_buyer_email']}";
	var lang_cart_buyer_note = "{$CMS->lang['cart_buyer_note']}";
	var lang_minlength_cus_username = "{$CMS->lang['lang_minlength_cus_username']}";
	var lang_succes_msg = "{$CMS->lang['lang_succes_msg']}";
	var send_complaint_exist = "{$CMS->lang['send_complaint_exist']}";
	var send_complaint_success = "{$CMS->lang['send_complaint_success']}";
	var lang_notice_comment_spam = "{$CMS->lang['notice_comment_spam']}";
	var lang_delete_catvip = "{$CMS->lang['lang_delete_catvip']}";
	var lang_catdm_name_null = "{$CMS->lang['lang_catdm_name_null']}";
	var lang_del_catvip_suc = "{$CMS->lang['lang_del_catvip_suc']}";
	var lang_delete_product = "{$CMS->lang['delete_product']}";
	var lang_change_skin_css_i = "{$CMS->lang['lang_change_skin_css_i']}";
	var lang_success_add_banner_vip = "{$CMS->lang['lang_success_add_banner_vip']}";	
	var lang_delete_bannervip = "{$CMS->lang['lang_delete_bannervip']}";	
	var lang_del_bannervip_suc = "{$CMS->lang['lang_del_bannervip_suc']}";	
	var lang_msg_title_null = "{$CMS->lang['msg_title_null']}";	
	var lang_msg_content_null = "{$CMS->lang['msg_content_null']}";	
	var lang_money_error_vip = "{$CMS->lang['lang_money_error_vip']}";	
	var dk_skin_vip_success = "{$CMS->lang['dk_skin_vip_success']}";	
	var dk_skin_vip_code = "{$CMS->lang['dk_skin_vip_code']}";	
	var dk_skin_vip_code3 = "{$CMS->lang['dk_skin_vip_code3']}";
	var lang_not_dk_vip = "{$CMS->lang['lang_not_dk_vip']}";
	
	var lang_cus_recharge_price_null = "{$CMS->lang['cus_recharge_price_null']}";
	var lang_cus_recharge_security_null = "{$CMS->lang['cus_recharge_security_null']}";
	
	var lang_showcase_error_menu = "{$CMS->lang['error_menu']}";
	var lang_showcase_error_position = "{$CMS->lang['error_position']}";
	var lang_showcase_error_week = "{$CMS->lang['error_week']}";
	var lang_update_info_shop = "{$CMS->lang['update_info_shop']}";
	
	var lang_please_input_data_search = "{$CMS->lang['please_input_data_search']}";
	
	var lang_remove_avatar = "{$CMS->lang['remove_avatar']}";
	var lang_please_input_info = "{$CMS->lang['please_input_info']}";
	var lang_security_code_wrong = "{$CMS->lang['security_code_wrong']}";
	var lang_select_thumb_error = "{$CMS->lang['select_thumb_error']}";
	var lang_no_data = "{$CMS->lang['no_data']}";
	var lang_greater_than_sc_max_item_account = "{$CMS->lang['greater_than_sc_max_item_account']}";
	var lang_greater_than_sc_max_item = "{$CMS->lang['greater_than_sc_max_item']}";
	var lang_security_code_null = "{$CMS->lang['error_sc']}";
	var lang_delete_banner = "{$CMS->lang['delete_banner']}";
	var lang_change_layout = "{$CMS->lang['change_layout']}";
	var lang_error_upload_avatar = "{$CMS->lang['error_upload_avatar']}";
	var lang_please_select_layout = "{$CMS->lang['please_select_layout']}";
	var lang_img_slider_text = "{$CMS->lang['img_slider_text']}";
	var lang_img_slider_text_center = "{$CMS->lang['img_slider_text_center']}";
	var lang_error_upload_thumbnail =  "{$CMS->lang['error_upload_thumbnail']}";
	
	var site_root_domain = "{$CMS->vars['root_domain']}";
	var site_is_login = "{$CMS->vars['is_login']}";
	var site_img_url = "{$CMS->vars['img_url']}";



EOF;

print $CMS->class->security->compress($CMS->class->input->trimall($data));

?>